﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BFF_EnrollmentSystem
{
    public partial class ParentForm : Form
    {
        public ParentForm()
        {
            InitializeComponent();
            this.Load += new EventHandler(ParentForm_Load);
            Menu_Reg_pb.Click += new EventHandler(Menu_Reg_pb_Click);
            Menu_Reg_fb.Click += new EventHandler(Menu_Reg_fb_Click);
            Menu_Reg_fm.Click += new EventHandler(Menu_Reg_fm_Click);
            Menu_Reg_sh.Click += new EventHandler(Menu_Reg_sh_Click);
            Menu_Reg_hh.Click += new EventHandler(Menu_Reg_hh_Click);
        }

        void Menu_Reg_hh_Click(object sender, EventArgs e)
        {
            HhForm hhf = new HhForm(this);
            hhf.MdiParent = this;
            hhf.Show();
        }

        void Menu_Reg_sh_Click(object sender, EventArgs e)
        {
            ShForm shf = new ShForm(this);
            shf.MdiParent = this;
            shf.Show();
        }

        void Menu_Reg_fm_Click(object sender, EventArgs e)
        {
            FmForm fmf = new FmForm(this);
            fmf.MdiParent = this;
            fmf.Show();
        }

        void Menu_Reg_fb_Click(object sender, EventArgs e)
        {
            FbForm fbf = new FbForm(this);
            fbf.MdiParent = this;
            fbf.Show();
        }

        void Menu_Reg_pb_Click(object sender, EventArgs e)
        {
            PbForm pbf = new PbForm(this);
            pbf.MdiParent = this;
            pbf.Show();
        }

        void ParentForm_Load(object sender, EventArgs e)
        {
            LoginForm lf = new LoginForm(this);
            lf.MdiParent = this;
            lf.Show();
            
        }
    }
}
